package com.fjec.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 009.商户收货地址表
 * </p>
 *
 * @author admin
 * @since 2020-09-14
 */
@Builder
@TableName("info_delivery_address")
public class InfoDeliveryAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 用户Id
     */
    @TableField("UserId")
    private Long userId;

    /**
     * 商户类型 1=个人
2=果农
3=分拣厂
4=农资厂
5=包装物厂
6=采购商
     */
    @TableField("BusiType")
    private Integer busiType;

    /**
     * 联系方式
     */
    @TableField("Phone")
    private String phone;

    /**
     * 联系人
     */
    @TableField("Contact")
    private String contact;

    /**
     * 省
     */
    @TableField("Prov")
    private String prov;

    /**
     * 市
     */
    @TableField("City")
    private String city;

    /**
     * 区
     */
    @TableField("District")
    private String district;

    /**
     * 详细地址1(省市区）
     */
    @TableField("Address1")
    private String address1;

    /**
     * 详细地址2
     */
    @TableField("Address2")
    private String address2;

    /**
     * 默认地址 0=否
1=是
     */
    @TableField("DefAddr")
    private Integer defAddr;

    /**
     * 删除标记 0=否
1=是
     */
    @TableField("DelFlag")
    private Integer delFlag;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getBusiType() {
        return busiType;
    }

    public void setBusiType(Integer busiType) {
        this.busiType = busiType;
    }
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }
    public String getProv() {
        return prov;
    }

    public void setProv(String prov) {
        this.prov = prov;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }
    public String getAddress1() {
        return address1;
    }

    public void setAddress1(String address1) {
        this.address1 = address1;
    }
    public String getAddress2() {
        return address2;
    }

    public void setAddress2(String address2) {
        this.address2 = address2;
    }
    public Integer getDefAddr() {
        return defAddr;
    }

    public void setDefAddr(Integer defAddr) {
        this.defAddr = defAddr;
    }
    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "InfoDeliveryAddress{" +
            "id=" + id +
            ", userId=" + userId +
            ", busiType=" + busiType +
            ", phone=" + phone +
            ", contact=" + contact +
            ", prov=" + prov +
            ", city=" + city +
            ", district=" + district +
            ", address1=" + address1 +
            ", address2=" + address2 +
            ", defAddr=" + defAddr +
            ", delFlag=" + delFlag +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
